module.exports = function(app) {

    app.post('/datas', function(req, res) {
        var data = {
            total: 20,
            pageIndex: 1,
            pageSize: 5,
            sortField: '',
            sortOrder: '',
            datas: [
                { id: '11', name: '测试11' },
                { id: '22', name: '测试22' },
                { id: '33', name: '测试33' },
                { id: '44', name: '测试44' },
                { id: '55', name: '测试55' }
            ]
        }

        res.writeHead(200, { 'Content-Type': 'application/json' });
        res.end(JSON.stringify(data));
    });

}
